#include <iostream>
/*
    所有指针在32位操作系统下都是 4 个字节

    所有指针在64位Linux操作系统下是 8 个字节
*/
int main(int argc, char const *argv[])
{
    int a = 10;
    int *p = &a;

    using namespace std;
    cout << *p << endl;
    cout << sizeof(*p) << endl;
    cout << sizeof(p) << endl;
    cout << sizeof(char *) << endl;
    cout << sizeof(long *) << endl;
    cout << sizeof(long long *) << endl;
    cout << sizeof(bool *) << endl;
    cout << sizeof(float *) << endl;
    cout << sizeof(double *) << endl;
    return 0;
}
